package appapi.dao;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

import appapi.entity.Zhongjiao.CertificateDto;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author djq
 * @date 2023/5/24 14:37
 * @description:
 */

@Mapper
public interface CertificateMapper {
    int deleteByPrimaryKey(Long certificateId);

    int deleteByOperId(Long operId);

    int insert(CertificateDto record);

    int insertSelective(CertificateDto record);

    CertificateDto selectByPrimaryKey(Long certificateId);

    List<CertificateDto> selectAllByOperId(@Param("operId")Long operId);

    List<CertificateDto> selectAllByOperItemId(@Param("operItemId")Long operItemId);

    int updateByPrimaryKeySelective(CertificateDto record);

    int updateByPrimaryKey(CertificateDto record);

    Integer selectExpirNumByOperId(@Param("operIds") List<Long> operIds);

    int insertList(@Param("records") List<CertificateDto> record);
}